<template>
  <t-config-provider :global-config="globalConfig">
    <router-view />
  </t-config-provider>
</template>

<script setup lang="ts">
import { GlobalConfigProvider } from 'tdesign-vue-next'

const globalConfig: GlobalConfigProvider = {
  calendar: {
    firstDayOfWeek: 1,
    fillWithZero: true,
  },
  table: {
    expandIcon: () => '▶',
  },
  pagination: {
    itemsPerPage: '{size} 条/页',
    jumpTo: '跳至',
    page: '页',
    total: '共 {total} 项数据',
  },
}
</script>

<style>
#app {
  height: 100vh;
}
</style>